﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="生产计划录入.aspx.cs" Inherits="syc.Produce.生产计划录入" %>
<html>
<head></head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <form id="form1" runat="server">
    <div id="wintop" class="wintop">生产计划录入</div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">
        
            <span style="display:inline-block;width:160px;text-align:right;">
            
                年 度：<asp:DropDownList ID="NianDu" runat="server" Width="80px" AutoPostBack="true">
                    <asp:ListItem>2008</asp:ListItem>
                    <asp:ListItem>2009</asp:ListItem>
                    <asp:ListItem>2010</asp:ListItem>
                    <asp:ListItem>2011</asp:ListItem>
                </asp:DropDownList>
            </span>
            <span style="display:inline-block;width:160px;text-align:right;margin-right:30px;">
                月 份：<asp:DropDownList ID="YueFen" runat="server" Width="80px" AutoPostBack="true">
                    <asp:ListItem Value="0">年度</asp:ListItem>
                    <asp:ListItem Value="1">1月份</asp:ListItem>
                    <asp:ListItem Value="2">2月份</asp:ListItem>
                    <asp:ListItem Value="3">3月份</asp:ListItem>
                    <asp:ListItem Value="4">4月份</asp:ListItem>
                    <asp:ListItem Value="5">5月份</asp:ListItem>
                    <asp:ListItem Value="6">6月份</asp:ListItem>
                    <asp:ListItem Value="7">7月份</asp:ListItem>
                    <asp:ListItem Value="8">8月份</asp:ListItem>
                    <asp:ListItem Value="9">9月份</asp:ListItem>
                    <asp:ListItem Value="10">10月份</asp:ListItem>
                    <asp:ListItem Value="11">11月份</asp:ListItem>
                    <asp:ListItem Value="12">12月份</asp:ListItem>

                    
                </asp:DropDownList> 
            </span>
            
            
            <asp:Button ID="Button_Save" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Save_Click" />
                
            <asp:Button ID="Button_Export" runat="server" Text="导出计划" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Export_Click" />
                
            <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />

        </asp:Panel>
        
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>





        <script>    putBillHead();</script>
        
<table border=1 style="border-collapse: collapse;text-align:center;" bordercolor=#000000>
	<tr>
		<td height=60 colspan=7 style="font-size:26px;"><%=this.NianDu.SelectedItem.Text%>年<%=this.YueFen.SelectedItem.Text %>计划明细</td>
	</tr>
	<tr>
		<td width=100 height=30>分 厂</td>
		<td width=120>产 品</td>
		<td width=80>钢 级</td>
		<td width=140>规格(mm)</td>
		<td width=100>螺纹形式</td>
		<td width=80>单位</td>
		<td width=140>计划量</td>
	</tr>
	<tr>
		<td height=30>一分厂</td>
		<td>套管管体</td>
		<td>J55</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td><asp:TextBox ID="ChanLiang12" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td rowspan="2">二分厂</td>
		<td height=30>油管管体</td>
		<td>J55</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td><asp:TextBox ID="ChanLiang21" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td height=30>套管管体</td>
		<td>J55</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td><asp:TextBox ID="ChanLiang22" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td rowspan="2">三分厂</td>
		<td height=30>油管接箍</td>
		<td>J55</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>支</td>
		<td><asp:TextBox ID="ChanLiang31" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td height=30>套管接箍</td>
		<td>J55</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>支</td>
		<td><asp:TextBox ID="ChanLiang32" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td>四分厂</td>
		<td height=30>套管保护器</td>
		<td>　</td>
		<td>5-1/2&quot;</td>
		<td>　</td>
		<td>套</td>
		<td><asp:TextBox ID="ChanLiang42" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td>五分厂</td>
		<td height=30>油管管体</td>
		<td>J55</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td><asp:TextBox ID="ChanLiang51" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td rowspan="2">外购接箍</td>
		<td height=30>油管接箍</td>
		<td>J55</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>支</td>
		<td><asp:TextBox ID="WaiGou1" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
	<tr>
		<td height=30>套管接箍</td>
		<td>J55</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>支</td>
		<td><asp:TextBox ID="WaiGou2" runat="server" CssClass="intxt1" Width="130"></asp:TextBox></td>
	</tr>
</table>

        

        <script>    putBillFoot();</script>

    </form>
    
    <script>
        var textboxs = document.getElementsByTagName("input");
        var i;
        for (i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "textbox" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }
        }

        document.body.onkeypress = function(e) {
            if (!e) e = window.event;
            var tag = e.srcElement;
            if (!tag) tag = e.target;
            if (tag.className.toLowerCase() != "intxt1") return;
            var i;
            if (e.keyCode == 13) {
                for (i = 0; i < textboxs.length; i++) {
                    if (tag == textboxs[i]) {
                        if (i < textboxs.length - 1) {
                            textboxs[i + 1].focus();
                            return false;
                        }
                    }
                }
            }
        };

    </script>
    
</form>
</body>
</html>